package org.chintoooor.trio.server.http;

import java.util.Properties;

public class HttpResponse {
	private String httpVersion;
	private int responseCode;
	private String responseMessage;

	private Properties headerProperties;

	private String messageBody;

	public final String getProtocolVersion() {
		return httpVersion;
	}

	public final void setHttpVersion(String httpVersion) {
		this.httpVersion = httpVersion;
	}

	public final int getResponseCode() {
		return responseCode;
	}

	public final void setResponseCode(int responseCode) {
		this.responseCode = responseCode;
	}

	public final String getResponseMessage() {
		return responseMessage;
	}

	public final void setResponseMessage(String responseMessage) {
		this.responseMessage = responseMessage;
	}

	public final Properties getHeaderProperties() {
		return headerProperties;
	}

	public final void setHeaderProperties(Properties headerProperties) {
		this.headerProperties = headerProperties;
	}

	public final String getMessageBody() {
		return messageBody;
	}

	public final void setMessageBody(String messageBody) {
		this.messageBody = messageBody;
	}

	public String setProperty(String key, String value) {
		return (String) headerProperties.setProperty(key, value);
	}

}
